package org.zjx.message.messages;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.zjx.message.AbstractMessage;

import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class CommandMessage extends AbstractMessage {
    private String clientId;
    private String command;
    private Map<String, Object> params;

    public CommandMessage(String command) {
        this.command = command;
        setTimestamp(System.currentTimeMillis());
    }
}